package six;

import java.text.SimpleDateFormat;
import java.util.*;

public class Six {
	public static void main(String[] args) {
		Calendar date = Calendar.getInstance();
		SimpleDateFormat F = new SimpleDateFormat("yyyy/MM/dd hh");
//		int year = date.get(Calendar.YEAR);
//		date.set(year, 0, 1, 8, 0);
//		while (date.get(Calendar.YEAR) < year + 1) {
//			if (date.get(Calendar.WEEK_OF_MONTH) == date
//					.getActualMaximum(Calendar.WEEK_OF_MONTH) - 2
//					&& date.get(Calendar.DAY_OF_WEEK) == 7) {
//				Date d = date.getTime();
//				String s = format.format(d);
//				System.out.println(s);
//
//			}
//			date.add(Calendar.DAY_OF_MONTH, 1);
//		}
		date.setFirstDayOfWeek(Calendar.SUNDAY);
for(int i=0;i<12;i++){
	date.set(Calendar.MONTH,i);
	date.set(Calendar.DAY_OF_MONTH, 1);
	date.set(Calendar.DAY_OF_WEEK_IN_MONTH,-2);
	date.set(Calendar.DAY_OF_WEEK,Calendar.SATURDAY);
	System.out.println(F.format(date.getTime()));
}
	}
}
